package com.nested;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;

public class StaticInner {

    //静态内部类

    private int a = 100;
    private static int b = 150;

    public static void test(){

        System.out.println("Outer static test ....");
    }

    public void test2(){

        System.out.println("Outer instabce test ....");
    }

    static class InStaticInner{

        public int a=200;
        static int b=300;

        public static void test(){

            System.out.println("Inner static test ...");
        }

        public void test2(){

            System.out.println("Inner instance test ...");
            StaticInner.test();
            new StaticInner().test2();
            System.out.println("StaticOuter.b="+StaticInner.b);
        }
    }

    public static void main(String[] args) {

      StaticInner.InStaticInner si = new StaticInner.InStaticInner();
      si.test2();
        System.out.println("si.b="+si.b);
        System.out.println("si.a="+si.a);

    }

}
